#ifndef __PT_PRINTK_H__
#define __PT_PRINTK_H__

#define get_filename(x) (strrchr(x,'/')?strrchr(x,'/')+1:x)

#if  0
#define log_i(...)
#else
#define log_i(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif

#if  0
#define log_d(...)
#else
#define log_d(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif


#if  0
#define log_e(...)
#else
#define log_e(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif


#if  1
#define log_n(...)
#else
#define log_n(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif

#if  0
#define debug_i(...)
#else
#define debug_i(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif

#if  0
#define debug_d(...)
#else
#define debug_d(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif

#if  0
#define debug_e(...)
#else
#define debug_e(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif

#if  1
#define debug_w(...)
#else
#define debug_w(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif

#if  0
#define debug_tip(...)
#else
#define debug_tip(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif

#if  1
#define debug_n(...)
#else
#define debug_n(...) (printf("L%04d(%s)", __LINE__, get_filename(__FILE__)),printf(__VA_ARGS__))
#endif


#endif

